package com.woniuxy.oa.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.woniuxy.oa.entity.AddressMsg;
import com.woniuxy.oa.entity.EmployeeMsg;

public interface AddressMsgMapper {
	//recordBegin表示查询开始的条数（分页后的第一条记录）
	List<EmployeeMsg> selectAddressByCondition(@Param("employee")EmployeeMsg employeeMsg,
			@Param("recordBegin")int recordBegin,@Param("pageSize")int pageSize);
	int selectCountRecordByCondition(@Param("employee")EmployeeMsg employeeMsg);
	//修改用户名的方法
	void modifyUserName(int id,String userName);
	//修改地址信息的方法
	void modifyAddress(AddressMsg addressMsg);
	//删除地址
	void deleteAddress(int id);
	//删除地址后删除用户
	void deleteUser(int id);
	//查询所有员工的id
	List<Integer> selectAllId();
}
